@extends('admin.base')
	@section('content')
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            <i class="fa fa-calendar"></i>
			公告信息管理 
          </h1>
          <ol class="breadcrumb">
            <li><a href="{{url('admin')}}"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="#">商品信息管理</a></li>
            <li class="active">添加商品信息详情</li>
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">
          <div class="row">
            <!-- right column -->
            <div class="col-md-12">
              <!-- Horizontal Form -->
              <div class="box box-primary">
                <div class="box-header with-border">
                  <h3 class="box-title"><i class="fa fa-plus"></i> 修改公告信息</h3>
                </div><!-- /.box-header -->
                <!-- form start -->
                <form class="form-horizontal" method="post" action="{{url('admin/notice')}}/{{$list->id}}">	
				<input type="hidden" name="_method" value="PUT">
				  <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
                  <div class="box-body">
                    <div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">标题</label>
                      <div class="col-sm-4">
                        <select name="title" class="form-control">
							<option {{$list->title=='0'?'selected':''}} value='0'>公告</option>
							<option {{$list->title=='1'?'selected':''}} value='1'>喜讯</option>
							<option {{$list->title=='2'?'selected':''}} value='2'>促销</option>
						</select>
                      </div>
                    </div>	
					
					<div class="form-group">
                      <label for="inputEmail3" class="col-sm-2 control-label">显示地址</label>
                      <div class="col-sm-4">
                        <select name="status" class="form-control">
							<option {{$list->status=='0'?'selected':''}} value="0">主体区</option>
							<option {{$list->status=='1'?'selected':''}} value="1">轮播区</option>
						</select>
                      </div>
                    </div>
					
					<div class="form-group">
                      <label for="inputPassword3" class="col-sm-2 control-label">公告内容</label>
                      <div class="col-sm-10">
                        <textarea id="editor1" name="content" rows="10" cols="80">{{$list->content}}</textarea>
                      </div>
                    </div>
					
                  <div class="box-footer">
				    <div class="col-sm-offset-2 col-sm-1">
						<button type="submit" class="btn btn-primary">提交</button>
                    </div>
					<div class="col-sm-1">
						<button type="reset"  class="btn btn-primary">重置</button>
					</div>
                  </div><!-- /.box-footer -->
                </form>
				<div class="row"><div class="col-sm-12">&nbsp;</div></div>
              </div><!-- /.box -->
            </div><!--/.col (right) -->
          </div>   <!-- /.row -->
        </section><!-- /.content -->
    @endsection